class VersionUpdateModel {
  int? code;
  String? msg;
  int? updateStatus;
  int? versionCode;
  String? versionName;
  String? uploadTime;
  String? modifyContent;
  String? downloadUrl;
  bool? isAppleUpdate;
  String? appleUrl;
  int? apkSize;
  String? apkMd5;

  VersionUpdateModel({
    this.code,
    this.msg,
    this.updateStatus,
    this.versionCode,
    this.versionName,
    this.uploadTime,
    this.modifyContent,
    this.downloadUrl,
    this.isAppleUpdate,
    this.appleUrl,
    this.apkSize,
    this.apkMd5,
  });

  factory VersionUpdateModel.fromJson(Map<String, dynamic> json) {
    return VersionUpdateModel(
      code: json['Code'] as int?,
      msg: json['Msg'] as String?,
      updateStatus: json['UpdateStatus'] as int?,
      versionCode: json['VersionCode'] as int?,
      versionName: json['VersionName'] as String?,
      uploadTime: json['UploadTime'] as String?,
      modifyContent: json['ModifyContent'] as String?,
      downloadUrl: json['DownloadUrl'] as String?,
      isAppleUpdate: json['isAppleUpdate'] as bool?,
      appleUrl: json['appleUrl'] as String?,
      apkSize: json['ApkSize'] as int?,
      apkMd5: json['ApkMd5'] as String?,
    );
  }

  Map<String, dynamic> toJson() => {
        'Code': code,
        'Msg': msg,
        'UpdateStatus': updateStatus,
        'VersionCode': versionCode,
        'VersionName': versionName,
        'UploadTime': uploadTime,
        'ModifyContent': modifyContent,
        'DownloadUrl': downloadUrl,
        'isAppleUpdate': isAppleUpdate,
        'appleUrl': appleUrl,
        'ApkSize': apkSize,
        'ApkMd5': apkMd5,
      };
}
